#ifndef _UART2_H_
#define _UART2_H_
#include "sys.h"

#define UART2_INT_EN							1
#define UART2_PACKET_OK						0x8000
#define UART2_PACKET_LEN					0x7FFF
#define UART2_PACKET_MAX_LEN			100

//????
extern xdata u16 uart2_rx_sta;
extern xdata u8  uart2_buf[];


void uart2_init(u32 baud);
void uart2_send_byte(u8 byte);
void uart2_send_bytes(u8 *bytes,u16 len);
char putchar(char c);



#endif